package nmy;

/**
 * mamenghao
 * 2022/10/178:54 AM
 */
public class TestDog {
    public static void main(String[] args) {
        //狗狗当狗狗看
        Dog gouzi=new Dog();
        gouzi.fly(123);
        gouzi.run(321);
        gouzi.shout();
        gouzi.eat();
        gouzi.sleep();
        //狗狗当动物看
        Animal dog=new Dog();
        ((Dog) dog).shout();
        dog.eat();
        dog.sleep();
        //狗狗当跑的东西看
        Runnable dog1=new Dog();
        dog1.run(89);
        //狗狗当飞的东西看
        Flyable dog2=new Dog();
        dog2.fly(120);




    }
}
